package com.cn.springcloudwechat.mapper.mapper;

import com.cn.springcloudwechat.model.YmPraise;
import org.apache.ibatis.annotations.Param;

public interface YmPraiseMapper {
    int deleteByPrimaryKey(Long praiseId);

    int insert(YmPraise record);

    int insertSelective(YmPraise record);

    YmPraise selectByPrimaryKey(Long praiseId);

    int updateByPrimaryKeySelective(YmPraise record);

    int updateByPrimaryKey(YmPraise record);

    Integer praiseExist(YmPraise record);

    int updatePraise(YmPraise record);

    int praiseCount(YmPraise record);
    /*
    问医生-查询点赞数
     */
    int queryPraiseCount(@Param("praiseType")String praiseType,@Param("praiseTypeId") Long praiseTypeId);

    int todayPraiseCount(YmPraise ymPraise);
}